home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16_Src.lha / Python16_Source / Python / getversion.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-03  |  255 b   |  15 lines

  1. /* Return the full version string. */
  2.  
  3. #include "Python.h"
  4.  
  5. #include "patchlevel.h"
  6.  
  7. const char *
  8. Py_GetVersion()
  9. {
  10.     static char version[250];
  11.     sprintf(version, "%.80s (%.80s) %.80s", PY_VERSION,
  12.         Py_GetBuildInfo(), Py_GetCompiler());
  13.     return version;
  14. }
  15.